let input=``
let input_arr=input.split('\n')

//姐
let num_arr=input_arr[1].split(' ')
let odd_count=0
for(let i=0;i<num_arr.length;i++){
    if(num_arr[i]%2===1){
        odd_count++
    }
}let even_count=num_arr.length-odd_count;
console.log(`${odd_count}` ${even_count});